package extend;

/**
 * @author gaopeng
 * @date 2019/12/14 9:54 下午
 */
public class Client {
    public static void main(String[] args) {
        String symbol = "+";
        int a = 10,b=10;
        if(StrategyEnum.ADD.getSymbol().equals(symbol)){
            System.out.println(StrategyEnum.ADD.exec(a, b));
        }else if(StrategyEnum.SUB.getSymbol().equals(symbol)){
            System.out.println(StrategyEnum.SUB.exec(a, b));
        }
    }
}
